Makes the popup relative to another System.Windows.FrameworkElement.
Syntax
'Declaration
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Overloads Shared Sub MakeRelative( _
ByVal As System.Windows.Controls.Primitives.Popup, _
ByVal As System.Windows.FrameworkElement, _
ByVal As System.Func(Of List(Of AnchorMatching)) _
)
'Usage
Dim popup As System.Windows.Controls.Primitives.Popup
Dim relativeElement As System.Windows.FrameworkElement
Dim getLocations As System.Func(Of List(Of AnchorMatching))
Extensions.MakeRelative(popup, relativeElement, getLocations)
[System.Runtime.CompilerServices.Extension()]
public static void MakeRelative(
System.Windows.Controls.Primitives.Popup ,
System.Windows.FrameworkElement ,
System.Func<List<AnchorMatching>>
)
Parameters
- popup
- System.Windows.Controls.Primitives.Popup to handle.
- relativeElement
- Element used to locate the popup.
- getLocations
- Function that provides the ordered list of AnchorMatching defining the corners to bound of both elements.
See Also